from applications.extensions import db
import datetime

class Friends(db.Model):
    __tablename__='chat_friends'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='用户ID')
    UserName=db.Column( db.String( 50 ), comment='id' )
    Signature=db.Column(db.String(255), comment='个性签名',default='')
    Sex=db.Column(db.String( 10 ), comment='性别' ,default='')
    NickName = db.Column(db.String(256), comment='昵称',default='')
    Tel=db.Column( db.String( 20 ), comment='电话' ,default='')
    Realname = db.Column(db.String(20), comment='真实名字',default='')
    Avatar = db.Column(db.String(255), comment='头像', default="/static/admin/admin/images/avatar.jpg")
    Remark = db.Column(db.String(255), comment='备注')
    Province = db.Column( db.String( 255 ), comment='省', default='')
    City=db.Column( db.String( 255 ), comment='城市', default='' )
    Type=db.Column( db.String( 20 ), comment='类型1.打车', default='0' )
    Create_time = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')
